package com.lhd.action.iterator;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: liuhd
 * @Date: 2024/12/19 13:24
 * @Description: 抽象聚合角色
 */
public abstract class BookCollection {
    protected List<Book> bookList = new ArrayList<>();

    abstract void add(Book book);

    abstract BookIterator createIterator();
}
